package com.wms.service.impl;

import com.wms.entity.CategoryOrder;
import com.wms.mapper.CategoryOrderMapper;
import com.wms.service.CategoryOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryOrderServiceImpl implements CategoryOrderService {

    @Autowired
    CategoryOrderMapper categoryOrderMapper;
    @Override
    public List<CategoryOrder> queryTree() {
        return categoryOrderMapper.queryTree();
    }

    @Override
    public int updateCategoryOrder(int id,int orderNum) {
        return categoryOrderMapper.updateCategoryOrder(id,orderNum);
    }
}
